package com.deram.ctin.serv.enter.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.deram.ctin.common.bean.PageResult;
import com.deram.ctin.serv.enter.entity.BaseUpdateInfo;
import com.deram.ctin.serv.enter.entity.EnterMainUser;
import com.deram.ctin.serv.enter.filter.EnterMainUserFilter;

import java.util.List;

/**
 * @Author: jtt
 * @Description:
 * @Date: 2017/9/13 13:54
 * @version: V1.0
 */
public interface EnterMainUserService {

    EnterMainUser find(Long id);

    Page<EnterMainUser> search(EnterMainUser filter, Pagination pagination);

    PageResult<EnterMainUser> findByEnterInfo(EnterMainUserFilter filter ,Integer pageNo,  Integer pageSize);

    List<EnterMainUser> list(EnterMainUserFilter filter);

    List<EnterMainUser> searchByCode(EnterMainUserFilter filter);

    List<EnterMainUser> findByEnterInfo(Long id);

    EnterMainUser save(EnterMainUser param);

    void delete(Long id);

    void deleteByEnterId(Long id);

    void saveList(BaseUpdateInfo<EnterMainUser> updateInfo);
}
